package common;

import java.util.Collection;

public class SelectedPart implements java.io.Serializable {
	
	private int allRecords;
	private int pageSize;
	private int pageIndex; 
	private int selectedRecords;
	private Collection records;
	
	public SelectedPart(int all,int index,int size,int select,Collection recs) {
		allRecords = all;
		pageIndex = index;
		pageSize = size;
		selectedRecords = select;
		records = recs;
	}	
	
	public int getAll() {
		return allRecords;
	}
	
	public int getIndex() {
		return pageIndex;
	}
		
	public int getSize() {
		return pageSize;	
	}
		
	public int getSelect() {
		return selectedRecords;
	}	
	
	public Collection getCollection() {
		return records;
	}	
}